	.file	"01card.c"
	.globl	piece
	.bss
	.align 32
	.type	piece, @object
	.size	piece, 208
piece:
	.zero	208
	.section	.rodata
	.align 8
.LC0:
	.string	"\350\257\267\350\276\223\345\205\245\347\216\251\345\256\266\344\272\272\346\225\260\344\273\245\345\217\212\346\257\217\344\270\252\347\216\251\345\256\266\347\232\204\347\211\214\346\225\260\357\274\232"
.LC1:
	.string	"%d%d"
	.align 8
.LC2:
	.string	"\350\276\223\345\205\245\344\270\215\346\255\243\347\241\256\357\274\214\347\216\251\347\254\221\345\274\200\345\244\247\344\272\206\345\220\247"
.LC3:
	.string	"\347\254\254%d\344\270\252\347\216\251\345\256\266\347\232\204\347\211\214\346\230\257\357\274\232"
.LC4:
	.string	"\351\273\221\346\241\203"
.LC5:
	.string	"\347\272\242\346\241\203"
.LC6:
	.string	"\346\242\205\350\212\261"
.LC7:
	.string	"\346\226\271\347\211\207"
.LC8:
	.string	"A "
.LC9:
	.string	"J "
.LC10:
	.string	"Q "
.LC11:
	.string	"K "
.LC12:
	.string	"%d "
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movl	$0, %edi
	call	time
	movl	%eax, %edi
	call	srand
	movl	$0, -36(%rbp)
	movl	$0, -40(%rbp)
	movl	$.LC0, %edi
	call	puts
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	movl	$.LC1, %edi
	movl	$0, %eax
	call	__isoc99_scanf
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	js	.L2
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	js	.L2
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %eax
	imull	%edx, %eax
	cmpl	$52, %eax
	jle	.L3
.L2:
	movl	$.LC2, %edi
	call	puts
	movl	$-1, %eax
	jmp	.L23
.L3:
	movl	$0, -20(%rbp)
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L5
.L22:
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	movl	$.LC3, %edi
	movl	$0, %eax
	call	printf
	movl	$0, -24(%rbp)
	jmp	.L6
.L21:
	call	rand
	movl	%eax, %edx
	sarl	$31, %edx
	shrl	$30, %edx
	addl	%edx, %eax
	andl	$3, %eax
	subl	%edx, %eax
	movl	%eax, -28(%rbp)
	call	rand
	movl	%eax, %ecx
	movl	$1321528399, %edx
	movl	%ecx, %eax
	imull	%edx
	sarl	$2, %edx
	movl	%ecx, %eax
	sarl	$31, %eax
	movl	%edx, %ebx
	subl	%eax, %ebx
	movl	%ebx, %eax
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	movl	%ecx, %edx
	subl	%eax, %edx
	movl	%edx, %eax
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	piece(,%rax,4), %eax
	testl	%eax, %eax
	jne	.L7
	movl	-32(%rbp), %eax
	movslq	%eax, %rcx
	movl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$-1, piece(,%rax,4)
	movl	-28(%rbp), %eax
	cmpl	$1, %eax
	je	.L10
	cmpl	$1, %eax
	jg	.L13
	testl	%eax, %eax
	je	.L9
	jmp	.L8
.L13:
	cmpl	$2, %eax
	je	.L11
	cmpl	$3, %eax
	je	.L12
	jmp	.L8
.L7:
	subl	$1, -24(%rbp)
	jmp	.L14
.L9:
	movl	$.LC4, %edi
	movl	$0, %eax
	call	printf
	jmp	.L8
.L10:
	movl	$.LC5, %edi
	movl	$0, %eax
	call	printf
	jmp	.L8
.L11:
	movl	$.LC6, %edi
	movl	$0, %eax
	call	printf
	jmp	.L8
.L12:
	movl	$.LC7, %edi
	movl	$0, %eax
	call	printf
	nop
.L8:
	movl	-32(%rbp), %eax
	addl	$1, %eax
	cmpl	$11, %eax
	je	.L17
	cmpl	$11, %eax
	jg	.L20
	cmpl	$1, %eax
	je	.L16
	jmp	.L15
.L20:
	cmpl	$12, %eax
	je	.L18
	cmpl	$13, %eax
	je	.L19
	jmp	.L15
.L16:
	movl	$.LC8, %edi
	movl	$0, %eax
	call	printf
	jmp	.L14
.L17:
	movl	$.LC9, %edi
	movl	$0, %eax
	call	printf
	jmp	.L14
.L18:
	movl	$.LC10, %edi
	movl	$0, %eax
	call	printf
	jmp	.L14
.L19:
	movl	$.LC11, %edi
	movl	$0, %eax
	call	printf
	jmp	.L14
.L15:
	movl	-32(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	movl	$.LC12, %edi
	movl	$0, %eax
	call	printf
.L14:
	addl	$1, -24(%rbp)
.L6:
	movl	-40(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L21
	movl	$10, %edi
	call	putchar
	addl	$1, -20(%rbp)
.L5:
	movl	-36(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L22
	movl	$0, %eax
.L23:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Debian 4.7.2-5) 4.7.2"
	.section	.note.GNU-stack,"",@progbits
